print('作业')
"""
拿到1-300之间的整数值
筛选出奇数
取余7 == 0 跳过
将筛选出来的值进行累加
num % 2 == 1  说明我们拿的是奇数 
num % 7 != 0  说明num并不是7的倍数   !=不等于   
"""
num = 1  # 计算器
sum_num = 0
while num < 300:
    if num % 7 != 0 and num % 2 == 1:
        sum_num += num  # 累加
        # print(num)
    num += 1   # 更改计数器
print(sum_num)


num = 1
sum_ = 0
while num <= 300:
    if num % 7 == 0:
        num += 2
        continue
    sum_ += num
    print(num)
    num += 2  # 跳过偶数
print(sum_)


